﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace CMTVision.WidgetWeb
{
    public partial class NewPageWizards : System.Web.UI.Page
    {
        #region Page Load

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                BindData();
            }
        }

        #endregion

        #region Bind

        protected void BindData()
        {
            using (Model.CMTWidgetsEntities entities = Common.EntitiesManager.LoadWidgetEntity())
            {
                var allTemplatesType = (from wt in entities.TemplateTypes select wt).ToList();
                TemplateTypeDropDownList.DataSource = allTemplatesType;
                TemplateTypeDropDownList.DataTextField = "Name";
                TemplateTypeDropDownList.DataValueField = "ID";
                TemplateTypeDropDownList.DataBind();
            }

            TemplateThinDropDownList.DataSource = new string[] {"Dark Hive","UI lightness" };
            TemplateThinDropDownList.DataBind();

            TemplateColorDropDownList.DataSource = new string[] {"Blue","Red","Yellow" };
            TemplateColorDropDownList.DataBind();

        }

        #endregion

        #region Drop Down List change events

        protected void TemplateTypeDropDownList_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        protected void TemplateThinDropDownList_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        protected void TemplateColorDropDownList_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        #endregion
    }
}